<template>
  <div class="base-setup" @click="showIconSelect = false">
    <el-form :model="setup" label-position="top" label-width="80px">
      <el-form-item label="流程名称" :rules="[{required:true,message:'请输入流程名称'}]" prop="formName">
        <el-input clearable v-model="setup.formName" size="medium"></el-input>
      </el-form-item>
      <el-form-item label="流程说明">
        <el-input clearable placeholder="请输入流程说明" v-model="setup.remark" type="textarea" show-word-limit :autosize="{ minRows: 3, maxRows: 7}"
          maxlength="500"></el-input>
      </el-form-item>
    </el-form>
    <div style="text-align: center;">
      <el-button style="width: 150px;" type="primary" @click="$emit('nextStep')">下一步</el-button>
    </div>
  </div>
</template>
<!-- 基础信息 -->
<script>
  export default {
    name: "FormBaseSetting",
    data() {
      return {}
    },
    computed: {
      setup() {
        return this.$store.state.design;
      }
    },
    methods:{
      validate(){
        let err = [];
        if(this.setup.formName == "")err.push("请输入流程名称")
        return err;
      }
    }
  }
</script>

<style lang="scss" scoped>
  .base-setup {
    overflow: auto;
    margin: 0 auto;
    width: 600px;
    height: calc(100vh - 274px);
    background: #ffffff;
    margin-top: 10px;
    padding: 15px 20px;
  }
</style>
